package jucP;

/**
 * @author : LdLtd
 * @Date : 2024/4/15
 * @Description:
 * 线程是并发执行的，"one" 和 "two" 可能会与 "Thread" 字符串交织输出，
 * 所以输出的确切顺序可能会有所不同
 */
public class test01 {
    public static void main(String[] args) {
        myThread myThread1 = new myThread();
        myThread myThread2 = new myThread();
        myThread1.start();
        System.out.println("one");
        myThread2.start();
        System.out.println("two");
    }
    public static class myThread extends Thread{
        @Override
        public void run() {
            System.out.println("Thread");
        }
    }
}
